import execjs


def getCookie(pwd):
    with open("D:\Jim\易仓\yicangjs.js", mode='r', encoding='utf-8') as f:
        js_file = f.read()
    ctx = execjs.compile(js_file)
    print(ctx.call('get_pwd', pwd))

getCookie()
    # return ctx.call('get_pwd', pwd)